package com.mkyong.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.MatrixParam;
import javax.ws.rs.core.Response;

//http://localhost:8080/RESTfulExample/rest/maxtrix;name=EJB%203.0;author=Bill%20Burke 
@Path("/maxtrix")
public class MaxtrixParamService {

	@GET
	public Response printMessage(@MatrixParam("name") String name, @MatrixParam("author") String author) {

		String result = "Restful example : " + "name = " + name + ", author = " + author;

		return Response.status(200).entity(result).build();
	}
}
